package com.menusifu.onlineorder.mongo.dao;

import com.menusifu.onlineorder.mongo.domain.SeatingAreas;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.ExampleMatcher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.Date;
import java.util.List;

public interface SeatingAreasDao extends MongoRepository<SeatingAreas,Integer> {
    List<SeatingAreas> findByCreatedOn(String createdOn);

    List<SeatingAreas> findByCreatedOnBetween(Date startTime, Date endTime);

    //分页查询
    public Page<SeatingAreas> findByCreatedOnBetween(Date startTime, Date endTime, Pageable pageable);




}
